#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
struct S
{
	int a;
	char c;
};
struct P
{
	double d;
	struct S s;
	float f;
};
void Print1(struct P sp)
{
	printf("%lf %d %c %f\n ", sp.d, sp.s.a, sp.s.c, sp.f);
}
void Print2(struct P* p1)
{
	print("%lf %d %c %f\n", (*p1).d, (*p1).s.a, (*p1).s.c, (*p1).f);
}
int main()
{
	struct P p = { 5.5,{100,'b'},3.14f };
	printf("%lf %d %c %f\n", p.d, p.s.a, p.s.c, p.f);
	Print1(p);
	Print2(&p);
	return 0;
}